Commit f78d9a55 authored by Samuel Mortenson's avatar Samuel Mortenson

Restore tome_static_super_cache test changes from revert.

parent 95111e2d
<?php
namespace Drupal\Tests\tome_static\Kernel;
namespace Drupal\Tests\tome_static_super_cache\Kernel;
use Drupal\Core\Datetime\Entity\DateFormat;
use Drupal\node\Entity\Node;
......
<?php
namespace Drupal\Tests\tome_static\Kernel;
namespace Drupal\Tests\tome_static_super_cache\Kernel;
use Drupal\Core\Datetime\Entity\DateFormat;
use Drupal\node\Entity\Node;
use Drupal\Tests\tome_base\Kernel\TestBase;
use Drupal\tome_static_super_cache\SuperStaticCache;
use Drupal\user\Entity\User;
/**
* Tests that the super static cache works.
......@@ -28,6 +29,12 @@ class SuperStaticCacheTest extends TestBase {
* @covers \Drupal\tome_static_super_cache\SuperStaticCache::deleteAll
*/
public function testSuperCache() {
User::create([
'uid' => 0,
'status' => 0,
'name' => '',
])->save();
/** @var \Drupal\tome_static\StaticGenerator $static */
$static = \Drupal::service('tome_static.generator');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment