You are here

protected function SimpleSitemapViewsTestBase::assertIndexSize in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 modules/simple_sitemap_views/tests/src/Functional/SimpleSitemapViewsTestBase.php \Drupal\Tests\simple_sitemap_views\Functional\SimpleSitemapViewsTestBase::assertIndexSize()

Asserts the size of the arguments index.

Parameters

int $size: The expected size.

2 calls to SimpleSitemapViewsTestBase::assertIndexSize()
SimpleSitemapViewsTest::testAddArgumentsToIndex in modules/simple_sitemap_views/tests/src/Functional/SimpleSitemapViewsTest.php
Tests the process of adding arguments to the index.
SimpleSitemapViewsTest::testGarbageCollector in modules/simple_sitemap_views/tests/src/Functional/SimpleSitemapViewsTest.php
Tests the garbage collection process.

File

modules/simple_sitemap_views/tests/src/Functional/SimpleSitemapViewsTestBase.php, line 84

Class

SimpleSitemapViewsTestBase
Defines a base class for Simple XML Sitemap (Views) functional testing.

Namespace

Drupal\Tests\simple_sitemap_views\Functional

Code

protected function assertIndexSize($size) {
  $this
    ->assertEquals($size, $this->sitemapViews
    ->getArgumentsFromIndexCount());
}