Knp\Bundle\KnpBundlesBundle\Tests\Travis\RepoTest::shouldUpdateBundleForUndefinedBuildStatus PHP Method

shouldUpdateBundleForUndefinedBuildStatus() public method

    public function shouldUpdateBundleForUndefinedBuildStatus()
    {
        $travis = $this->getTravis(array('last_build_status' => 777, 'last_build_finished_at' => '2011-10-25T11:27:42Z'));
        $bundle = $this->getMock('Knp\\Bundle\\KnpBundlesBundle\\Entity\\Bundle', array('setTravisCiBuildStatus', 'getUpdatedAt'));
        $bundle->expects($this->once())->method('setTravisCiBuildStatus')->with($this->isNull());
        $bundle->expects($this->once())->method('getUpdatedAt')->will($this->returnValue(new \DateTime()));
        $bundle->setOwnerName('KnpLabs');
        $bundle->setName('KnpBundles');
        $travis->update($bundle);
    }