PHP Class luyatests\core\base\ModuleReflectionTest

Inheritance: extends luyatests\LuyaWebTestCase
Afficher le fichier Open project: luyadev/luya

Méthodes publiques

Méthode Description
testInitException ( )
testModuleSuffix ( ) * public function testModuleObject() { $ref = $this->buildObject(Yii::$app->getModule('unitmodule')); $ref->defaultRoute('unit-test-2', 'index', ['x' => 'y']); $reflectionRequest = $ref->getRequestRoute(); $content = $ref->run();
testNotFoundControllerException ( )
testShareObject ( )

Private Methods

Méthode Description
buildObject ( $module )

Method Details

testInitException() public méthode

public testInitException ( )

testModuleSuffix() public méthode

$this->assertEquals(5, count($content)); $this->assertEquals('unit-test-2', $content['id']); $this->assertEquals('unitmodule', $content['module']); $this->assertNotEquals('@app/views/unitmodule/unit-test', $content['viewPath']); $this->assertNotEquals('@app/views/unitmodule/', $content['moduleLayoutViewPath']); $this->assertEquals('@unitmodule/views/', $content['moduleLayoutViewPath']); }
public testModuleSuffix ( )

testNotFoundControllerException() public méthode

testShareObject() public méthode

public testShareObject ( )