Commit 28b6b321 authored by Tim Rohaly's avatar Tim Rohaly Committed by Tim Rohaly
Browse files

Issue #3268474 by TR: Replace assert* involving count() and an integer literal with assertCount()

parent e9a1b492
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ class ViewsAggregatorStyleTableTest extends ViewTestBase {

    $this->drupalGet('va-test-style-table');
    $result = $this->xpath('//summary/child::text()');
    $this->assertEquals(0, count($result), 'Ensure that the summary disappears.');
    $this->assertCount(0, $result, 'Ensure that the summary disappears.');
  }

  /**
@@ -163,10 +163,10 @@ class ViewsAggregatorStyleTableTest extends ViewTestBase {

    // Test that only one of the job columns still shows.
    $result = $this->xpath('//thead/tr/th/a[text()="Job"]');
    $this->assertEquals(1, count($result), 'Ensure that empty column header is hidden.');
    $this->assertCount(1, $result, 'Ensure that empty column header is hidden.');

    $result = $this->xpath('//tbody/tr/td[contains(concat(" ", @class, " "), " views-field-job-1 ")]');
    $this->assertEquals(0, count($result), 'Ensure the empty table cells are hidden.');
    $this->assertCount(0, $result, 'Ensure the empty table cells are hidden.');
  }

  /**