X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fblock%2Ftests%2Fsrc%2FFunctional%2FNonDefaultBlockAdminTest.php;fp=web%2Fcore%2Fmodules%2Fblock%2Ftests%2Fsrc%2FFunctional%2FNonDefaultBlockAdminTest.php;h=7b7927de20c1bdd3fa6616c86f28786e8e261f8d;hp=0000000000000000000000000000000000000000;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/web/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php b/web/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php new file mode 100644 index 000000000..7b7927de2 --- /dev/null +++ b/web/core/modules/block/tests/src/Functional/NonDefaultBlockAdminTest.php @@ -0,0 +1,42 @@ +drupalPlaceBlock('local_tasks_block'); + } + + /** + * Test non-default theme admin. + */ + public function testNonDefaultBlockAdmin() { + $admin_user = $this->drupalCreateUser(['administer blocks', 'administer themes']); + $this->drupalLogin($admin_user); + $new_theme = 'bartik'; + \Drupal::service('theme_handler')->install([$new_theme]); + $this->drupalGet('admin/structure/block/list/' . $new_theme); + $this->assertText('Bartik(' . t('active tab') . ')', 'Tab for non-default theme found.'); + } + +}