/**
  * @group core
  */
 public function testExplicitlySetActionsOnNotInherited()
 {
     \Codeception\Module\PhpSiteHelper::$includeInheritedActions = false;
     \Codeception\Module\PhpSiteHelper::$onlyActions = array('see');
     $modules = array('PhpSiteHelper' => new \Codeception\Module\PhpSiteHelper());
     $actions = \Codeception\Configuration::actions($modules);
     $this->assertArrayNotHasKey('amOnPage', $actions);
     $this->assertArrayHasKey('see', $actions);
     $this->assertArrayNotHasKey('click', $actions);
 }
 /**
  * @group core
  */
 public function testExplicitlySetActionsOnNotInherited()
 {
     \Codeception\Module\PhpSiteHelper::$includeInheritedActions = false;
     \Codeception\Module\PhpSiteHelper::$onlyActions = ['see'];
     $this->moduleContainer->create('\\Codeception\\Module\\PhpSiteHelper');
     $actions = $this->moduleContainer->getActions();
     $this->assertArrayNotHasKey('amOnPage', $actions);
     $this->assertArrayHasKey('see', $actions);
     $this->assertArrayNotHasKey('click', $actions);
 }
Beispiel #3
0
 protected function tearDown()
 {
     \Codeception\Module\PhpSiteHelper::$includeInheritedActions = true;
     \Codeception\Module\PhpSiteHelper::$onlyActions = array();
     \Codeception\Module\PhpSiteHelper::$excludeActions = array();
 }