lithium\tests\cases\test\GroupTest::testRunGroupAllForTestApp PHP Method

testRunGroupAllForTestApp() public method

    public function testRunGroupAllForTestApp()
    {
        $testApp = Libraries::get(true, 'resources') . '/tmp/tests/test_app';
        mkdir($testApp);
        Libraries::add('test_app', array('path' => $testApp));
        mkdir($testApp . '/tests/cases/models', 0777, true);
        file_put_contents($testApp . '/tests/cases/models/UserTest.php', "<?php namespace test_app\\tests\\cases\\models;\n\n\t\t\tclass UserTest extends \\lithium\\test\\Unit { public function testMe() {\n\t\t\t\t\$this->assertTrue(true);\n\t\t\t}}");
        Libraries::cache(false);
        $expected = array('test_app\\tests\\cases\\models\\UserTest');
        $result = Group::all(array('library' => 'test_app'));
        $this->assertEqual($expected, $result);
        Libraries::cache(false);
        $this->_cleanUp();
    }