installEntitySchema('block_content'); } /** * Tests creation of block content stubs with no block_content_type available. */ public function testStubFailure() { $message = 'Expected MigrateException thrown when no bundles exist.'; try { $this->createStub('block_content'); $this->fail($message); } catch (MigrateException $e) { $this->pass($message); $this->assertEqual('Stubbing failed, no bundles available for entity type: block_content', $e->getMessage()); } } /** * Tests creation of block content stubs when there is a block_content_type. */ public function testStubSuccess() { BlockContentType::create([ 'id' => 'test_block_content_type', 'label' => 'Test block content type', ])->save(); $this->performStubTest('block_content'); } }