|
|
|
@ -7,12 +7,12 @@ namespace Drupal\Tests\islandora\Functional; |
|
|
|
* |
|
|
|
* |
|
|
|
* @group islandora |
|
|
|
* @group islandora |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
class EntityBundleTest extends IslandoraFunctionalTestBase { |
|
|
|
class IslandoraEntityBundleTest extends IslandoraFunctionalTestBase { |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\EntityBundle::buildConfigurationForm |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\IslandoraEntityBundle::buildConfigurationForm |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\EntityBundle::submitConfigurationForm |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\IslandoraEntityBundle::submitConfigurationForm |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\EntityBundle::evaluate |
|
|
|
* @covers \Drupal\islandora\Plugin\Condition\IslandoraEntityBundle::evaluate |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function testEntityBundleType() { |
|
|
|
public function testEntityBundleType() { |
|
|
|
// Create a test user. |
|
|
|
// Create a test user. |
|
|
|
@ -24,7 +24,7 @@ class EntityBundleTest extends IslandoraFunctionalTestBase { |
|
|
|
$this->drupalLogin($account); |
|
|
|
$this->drupalLogin($account); |
|
|
|
|
|
|
|
|
|
|
|
$this->createContext('Test', 'test'); |
|
|
|
$this->createContext('Test', 'test'); |
|
|
|
$this->addCondition('test', 'entity_bundle'); |
|
|
|
$this->addCondition('test', 'islandora_entity_bundle'); |
|
|
|
$this->getSession()->getPage()->checkField("edit-conditions-entity-bundle-bundles-test-type"); |
|
|
|
$this->getSession()->getPage()->checkField("edit-conditions-entity-bundle-bundles-test-type"); |
|
|
|
$this->getSession()->getPage()->findById("edit-conditions-entity-bundle-context-mapping-node")->selectOption("@node.node_route_context:node"); |
|
|
|
$this->getSession()->getPage()->findById("edit-conditions-entity-bundle-context-mapping-node")->selectOption("@node.node_route_context:node"); |
|
|
|
$this->getSession()->getPage()->pressButton(t('Save and continue')); |
|
|
|
$this->getSession()->getPage()->pressButton(t('Save and continue')); |
|
|
|
|