Its validateRevision, not isValidRevision, here as well

This commit is contained in:
Thomas Keller 2011-04-01 11:17:21 +02:00
parent 5553c37ccd
commit 4976c20935

View File

@ -231,9 +231,9 @@ class IDF_Tests_TestMonotone extends UnitTestCase
$this->assertEqual("second\n", $files[0]->log);
}
public function testIsValidRevision()
public function testvalidateRevision()
{
$this->assertTrue($this->mtnInstance->isValidRevision("t:release-1.0"));
$this->assertFalse($this->mtnInstance->isValidRevision("abcdef12345"));
$this->assertEquals(IDF_Scm::REVISION_VALID, $this->mtnInstance->validateRevision("t:release-1.0"));
$this->assertEquals(IDF_Scm::REVISION_INVALID, $this->mtnInstance->validateRevision("abcdef12345"));
}
}