Skip to content
Snippets Groups Projects
Commit 798dd64c authored by catch's avatar catch
Browse files

Adjust tests

parent f39ce78b
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
use Drupal\Core\Session\AccountInterface; use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\entity_test\Entity\EntityTest; use Drupal\entity_test\Entity\EntityTest;
use Drupal\Tests\WaitTerminateTrait;
use Drupal\Tests\jsonapi\Traits\CommonCollectionFilterAccessTestPatternsTrait; use Drupal\Tests\jsonapi\Traits\CommonCollectionFilterAccessTestPatternsTrait;
use Drupal\user\Entity\User; use Drupal\user\Entity\User;
use GuzzleHttp\RequestOptions; use GuzzleHttp\RequestOptions;
...@@ -27,6 +28,7 @@ class CommentTest extends ResourceTestBase { ...@@ -27,6 +28,7 @@ class CommentTest extends ResourceTestBase {
use CommentTestTrait; use CommentTestTrait;
use CommonCollectionFilterAccessTestPatternsTrait; use CommonCollectionFilterAccessTestPatternsTrait;
use WaitTerminateTrait;
/** /**
* {@inheritdoc} * {@inheritdoc}
......
...@@ -37,7 +37,7 @@ public function testFrontPageAuthenticatedWarmCache(): void { ...@@ -37,7 +37,7 @@ public function testFrontPageAuthenticatedWarmCache(): void {
}, 'authenticatedFrontPage'); }, 'authenticatedFrontPage');
$this->assertGreaterThanOrEqual(11, $performance_data->getQueryCount()); $this->assertGreaterThanOrEqual(11, $performance_data->getQueryCount());
$this->assertLessThanOrEqual(13, $performance_data->getQueryCount()); $this->assertLessThanOrEqual(13, $performance_data->getQueryCount());
$this->assertSame(45, $performance_data->getCacheGetCount()); $this->assertSame(46, $performance_data->getCacheGetCount());
$this->assertSame(0, $performance_data->getCacheSetCount()); $this->assertSame(0, $performance_data->getCacheSetCount());
$this->assertSame(0, $performance_data->getCacheDeleteCount()); $this->assertSame(0, $performance_data->getCacheDeleteCount());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment