PHP Class luyatests\core\base\ModuleReflectionTest

Inheritance: extends luyatests\LuyaWebTestCase
Datei anzeigen Open project: luyadev/luya

Public Methods

Method 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

Method Description
buildObject ( $module )

Method Details

testInitException() public method

public testInitException ( )

testModuleSuffix() public method

$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 method

testShareObject() public method

public testShareObject ( )