diff --git a/src/Tests/InstagramBlockPlaceBlockTest.php b/src/Tests/InstagramBlockPlaceBlockTest.php index 06467ce..bc446ac 100644 --- a/src/Tests/InstagramBlockPlaceBlockTest.php +++ b/src/Tests/InstagramBlockPlaceBlockTest.php @@ -114,4 +114,15 @@ class InstagramBlockPlaceBlockTest extends WebTestBase { $this->assertText('Cache time in minutes must be a number.', 'Block failed to save.'); } + /** + * Test availability of block in the admin 'Place blocks' list. + */ + public function testCoreThemeBlockList() { + \Drupal::service('theme_handler')->install(['bartik', 'seven', 'stark']); + foreach (['bartik', 'seven', 'stark'] as $theme) { + $this->drupalGet("admin/structure/block/library/$theme"); + $this->assertText('Instagram block', "Instagram block found in $theme theme block selection."); + } + } + }