From d61d8a897ae43449baf5d3c6a68964d60a5707db Mon Sep 17 00:00:00 2001 From: "florian.azizian" <florian.azizian@maarch.org> Date: Mon, 23 Sep 2019 17:45:38 +0100 Subject: [PATCH] FEAT #11269 TIME 0:20 TU indexing model --- .../app/indexingModel/IndexingModelControllerTest.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/unitTests/app/indexingModel/IndexingModelControllerTest.php b/test/unitTests/app/indexingModel/IndexingModelControllerTest.php index aef8763d655..2bf7dd21f00 100644 --- a/test/unitTests/app/indexingModel/IndexingModelControllerTest.php +++ b/test/unitTests/app/indexingModel/IndexingModelControllerTest.php @@ -26,13 +26,11 @@ class IndexingModelControllerTest extends TestCase 'private' => true, 'fields' => [ [ - 'type' => 'string', 'identifier' => 'subject', 'mandatory' => true, 'default_value' => 'tika', ], [ - 'type' => 'string', 'identifier' => 'name', 'mandatory' => true, 'default_value' => 'massala', @@ -60,11 +58,9 @@ class IndexingModelControllerTest extends TestCase $this->assertSame('mon model d indexation', $responseBody->indexingModel->label); $this->assertSame(false, $responseBody->indexingModel->default); $this->assertSame(true, $responseBody->indexingModel->private); - $this->assertSame('string', $responseBody->indexingModel->fields[0]->type); $this->assertSame('subject', $responseBody->indexingModel->fields[0]->identifier); $this->assertSame(true, $responseBody->indexingModel->fields[0]->mandatory); $this->assertSame('tika', $responseBody->indexingModel->fields[0]->default_value); - $this->assertSame('string', $responseBody->indexingModel->fields[1]->type); $this->assertSame('name', $responseBody->indexingModel->fields[1]->identifier); $this->assertSame(true, $responseBody->indexingModel->fields[1]->mandatory); $this->assertSame('massala', $responseBody->indexingModel->fields[1]->default_value); @@ -97,13 +93,11 @@ class IndexingModelControllerTest extends TestCase 'default' => false, 'fields' => [ [ - 'type' => 'string', 'identifier' => 'subject', 'mandatory' => true, 'default_value' => 'butter', ], [ - 'type' => 'string', 'identifier' => 'siret', 'mandatory' => false, 'default_value' => 'chicken', @@ -128,11 +122,9 @@ class IndexingModelControllerTest extends TestCase $this->assertSame('mon model d indexation modifié', $responseBody->indexingModel->label); $this->assertSame(false, $responseBody->indexingModel->default); $this->assertSame(true, $responseBody->indexingModel->private); - $this->assertSame('string', $responseBody->indexingModel->fields[0]->type); $this->assertSame('subject', $responseBody->indexingModel->fields[0]->identifier); $this->assertSame(true, $responseBody->indexingModel->fields[0]->mandatory); $this->assertSame('butter', $responseBody->indexingModel->fields[0]->default_value); - $this->assertSame('string', $responseBody->indexingModel->fields[1]->type); $this->assertSame('siret', $responseBody->indexingModel->fields[1]->identifier); $this->assertSame(false, $responseBody->indexingModel->fields[1]->mandatory); $this->assertSame('chicken', $responseBody->indexingModel->fields[1]->default_value); -- GitLab