Rename all models

This commit is contained in:
Frederic Guillot
2016-05-28 19:48:22 -04:00
parent 936376ffe7
commit 14713b0ec7
411 changed files with 4145 additions and 4156 deletions

View File

@@ -3,14 +3,14 @@
require_once __DIR__.'/../Base.php';
use Kanboard\Validator\ProjectValidator;
use Kanboard\Model\Project;
use Kanboard\Model\ProjectModel;
class ProjectValidatorTest extends Base
{
public function testValidateCreation()
{
$validator = new ProjectValidator($this->container);
$p = new Project($this->container);
$p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'UnitTest1', 'identifier' => 'test1')));
$this->assertEquals(2, $p->create(array('name' => 'UnitTest2')));
@@ -39,7 +39,7 @@ class ProjectValidatorTest extends Base
public function testValidateModification()
{
$validator = new ProjectValidator($this->container);
$p = new Project($this->container);
$p = new ProjectModel($this->container);
$this->assertEquals(1, $p->create(array('name' => 'UnitTest1', 'identifier' => 'test1')));
$this->assertEquals(2, $p->create(array('name' => 'UnitTest2', 'identifier' => 'TEST2')));