Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jibran created an issue. See original summary.

jibran’s picture

Status: Active » Needs review
FileSize
41.45 KB

Status: Needs review » Needs work

The last submitted patch, 2: remove_the_deprecated-2751409-2.patch, failed testing.

jibran’s picture

Status: Needs work » Needs review
FileSize
1.11 KB
41.86 KB
dawehner’s picture

  1. +++ b/tests/src/Functional/DynamicEntityReferenceBaseTest.php
    @@ -101,14 +101,14 @@ class DynamicEntityReferenceBaseTest extends BrowserTestBase {
    -    $this->assertEqual(1, count($entities), 'Entity was saved');
    +    $this->assertEquals(count($entities), 1, 'Entity was saved');
    ...
    -    $this->assertEqual(count($entity->dynamic_references), 1, 'One item in field');
    -    $this->assertEqual($entity->dynamic_references[0]->entity->label(), 'item1');
    +    $this->assertEquals(count($entity->dynamic_references), 1, 'One item in field');
    +    $this->assertEquals($entity->dynamic_references[0]->entity->label(), 'item1');
    

    Could be assertCount

  2. +++ b/tests/src/Functional/DynamicEntityReferenceBaseTest.php
    @@ -101,14 +101,14 @@ class DynamicEntityReferenceBaseTest extends BrowserTestBase {
    -    $this->assertText('Barfoo');
    -    $this->assertText('item1');
    +    $this->assertSession()->pageTextContains('Barfoo');
    

    In those cases you store store $assert = $this->assertSession()

jibran’s picture

Thanks for the review. Fixed #5.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Cool, thank you @jibran!

  • jibran committed 1aa2884 on 8.x-1.x
    Issue #2751409 by jibran, dawehner: Remove the deprecated function calls...
jibran’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review. Committed and pushed to 8.x-1.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.