lithium\tests\cases\console\command\LibraryTest::testInstallDocs PHP Method

testInstallDocs() public method

public testInstallDocs ( )
    public function testInstallDocs()
    {
        $this->skipIf(strpos(shell_exec('git --version'), 'git version') === false, 'The git is not installed.');
        $this->skipIf(dns_check_record("google.com") === false, "No internet connection.");
        $this->library->path = $this->_testPath;
        $result = $this->library->install('li3_docs');
        $this->assertTrue($result);
        $result = is_dir($this->_testPath . '/li3_docs');
        $this->assertTrue($result);
        $this->_cleanUp();
    }