'null' => null,
'dummy' => true,
'string' => 'NamedDummyAction',
+ 'declared' => 'NonExistingClassName',
'callable' => array( $this, 'dummyActionCallback' ),
'object' => new InstantiatedDummyAction( $this->getPage(), $this->getContext() ),
) );
$this->assertEquals( isset( $expected ), $exists );
}
+ public function testActionExists_doesNotRequireInstantiation() {
+ // The method is not supposed to check if the action can be instantiated.
+ $exists = Action::exists( 'declared' );
+
+ $this->assertTrue( $exists );
+ }
+
/**
* @dataProvider actionProvider
* @param string $requestedAction