/**
  * @group core
  */
 public function testActionsExplicitlySetForNotInheritedModule()
 {
     \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);
 }
Example #2
0
 protected function tearDown()
 {
     \Codeception\Module\PhpSiteHelper::$includeInheritedActions = true;
     \Codeception\Module\PhpSiteHelper::$onlyActions = array();
     \Codeception\Module\PhpSiteHelper::$excludeActions = array();
 }
Example #3
0
 /**
  * @group core
  */
 public function testActionsExplicitlySetForNotInheritedModule()
 {
     \Codeception\Module\PhpSiteHelper::$onlyActions = ['see'];
     $this->moduleContainer->create('\\Codeception\\Module\\PhpSiteHelper');
     $actions = $this->moduleContainer->getActions();
     $this->assertArrayNotHasKey('amOnPage', $actions);
     $this->assertArrayHasKey('see', $actions);
 }