/** * Asserts various aspects of a base_field_override entity. * * @param string $id * The override ID. * @param string $label * The label's expected (overridden) value. */ protected function assertEntity($id, $label) { $override = BaseFieldOverride::load($id); $this->assertTrue($override instanceof BaseFieldOverride); /** @var \Drupal\Core\Field\Entity\BaseFieldOverride $override */ $this->assertIdentical($label, $override->getLabel()); }
/** * Tests migration of the promote checkbox's settings. */ public function testMigration() { $this->assertIdentical('Promoted to front page', BaseFieldOverride::load('node.article.promote')->label()); }
/** * Tests migration of the sticky checkbox's settings. */ public function testMigration() { $this->assertIdentical('Sticky at the top of lists', BaseFieldOverride::load('node.article.sticky')->label()); }
/** * Tests migration of the publishing status checkbox's settings. */ public function testMigration() { $this->assertIdentical('Publishing status', BaseFieldOverride::load('node.article.status')->label()); }