X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock%2Fsrc%2FTests%2FBlockLanguageCacheTest.php;fp=web%2Fcore%2Fmodules%2Fblock%2Fsrc%2FTests%2FBlockLanguageCacheTest.php;h=0000000000000000000000000000000000000000;hp=269536d9ce18a354c910ca645b5b490a06c44f52;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/block/src/Tests/BlockLanguageCacheTest.php b/web/core/modules/block/src/Tests/BlockLanguageCacheTest.php deleted file mode 100644 index 269536d9c..000000000 --- a/web/core/modules/block/src/Tests/BlockLanguageCacheTest.php +++ /dev/null @@ -1,77 +0,0 @@ -langcodes = [ConfigurableLanguage::load('en')]; - for ($i = 1; $i < 3; ++$i) { - $language = ConfigurableLanguage::create([ - 'id' => 'l' . $i, - 'label' => $this->randomString(), - ]); - $language->save(); - $this->langcodes[$i] = $language; - } - } - - /** - * Creates a block in a language, check blocks page in all languages. - */ - public function testBlockLinks() { - // Create admin user to be able to access block admin. - $admin_user = $this->drupalCreateUser([ - 'administer blocks', - 'access administration pages', - 'administer menu', - ]); - $this->drupalLogin($admin_user); - - // Create the block cache for all languages. - foreach ($this->langcodes as $langcode) { - $this->drupalGet('admin/structure/block', ['language' => $langcode]); - $this->clickLinkPartialName('Place block'); - } - - // Create a menu in the default language. - $edit['label'] = $this->randomMachineName(); - $edit['id'] = Unicode::strtolower($edit['label']); - $this->drupalPostForm('admin/structure/menu/add', $edit, t('Save')); - $this->assertText(t('Menu @label has been added.', ['@label' => $edit['label']])); - - // Check that the block is listed for all languages. - foreach ($this->langcodes as $langcode) { - $this->drupalGet('admin/structure/block', ['language' => $langcode]); - $this->clickLinkPartialName('Place block'); - $this->assertText($edit['label']); - } - } - -}