lithium\tests\cases\action\ControllerTest::testLibraryScoping PHP Метод

testLibraryScoping() публичный Метод

Tests that the library of the controller is automatically added to the default rendering options.
public testLibraryScoping ( )
    public function testLibraryScoping()
    {
        $request = new Request();
        $request->params['controller'] = 'lithium\\tests\\mocks\\action\\MockPostsController';
        $controller = new MockPostsController(compact('request') + array('classes' => array('media' => 'lithium\\tests\\mocks\\action\\MockMediaClass')));
        $controller->render();
        $this->assertEqual('lithium', $controller->response->options['library']);
    }