SensioLabs\Insight\Sdk\Tests\ApiTest::testGetProject PHP Method

testGetProject() public method

public testGetProject ( )
    public function testGetProject()
    {
        $this->pluginMockResponse->addResponse($this->createResponse('project'));
        $project = $this->api->getProject('6718526f-ecdf-497d-bffb-8512f0b402ea');
        $this->assertInstanceOf('SensioLabs\\Insight\\Sdk\\Model\\Project', $project);
        $this->assertSame('demo', $project->getName());
        $this->assertNotnull($project->getConfiguration());
        $this->assertSame('[email protected]:lyrixx/demoer.git', $project->getRepositoryUrl());
        $this->assertTrue($project->isPublic());
        $this->assertTrue($project->isReportAvailable());
        $this->assertSame(1, $project->getType());
        $this->assertInstanceOf('SensioLabs\\Insight\\Sdk\\Model\\Analysis', $project->getLastAnalysis());
    }