diff --git a/tests/Feature/ApiEditorTest.php b/tests/Feature/ApiEditorTest.php index 8a07b9ed..d457b678 100644 --- a/tests/Feature/ApiEditorTest.php +++ b/tests/Feature/ApiEditorTest.php @@ -626,7 +626,7 @@ public function testAddAttributeToEntityTypeEndpoint() $response->assertJson([ 'entity_type_id' => 3, 'attribute_id' => 3, - 'position' => 4, + 'position' => 5, 'depends_on' => null, 'attribute' => [ 'id' => 3, @@ -843,7 +843,8 @@ public function testDeleteEntityTypeEndpoint() $etCnt = EntityType::count(); $this->assertEquals(5, $etCnt); $eaCnt = EntityAttribute::count(); - $this->assertEquals(23, $eaCnt); + info(EntityAttribute::all()); + $this->assertEquals(24, $eaCnt); $eCnt = Entity::count(); $this->assertEquals(8, $eCnt); $avCnt = AttributeValue::count(); @@ -857,7 +858,7 @@ public function testDeleteEntityTypeEndpoint() $etCnt = EntityType::count(); $this->assertEquals(4, $etCnt); $eaCnt = EntityAttribute::count(); - $this->assertEquals(18, $eaCnt); + $this->assertEquals(19, $eaCnt); $eCnt = Entity::count(); $this->assertEquals(4, $eCnt); $avCnt = AttributeValue::count(); @@ -870,7 +871,7 @@ public function testDeleteEntityTypeEndpoint() public function testDeleteAttributeEndpoint() { $eaCnt = EntityAttribute::count(); - $this->assertEquals(23, $eaCnt); + $this->assertEquals(24, $eaCnt); $avCnt = AttributeValue::count(); $this->assertEquals(25, $avCnt); $aCnt = Attribute::count(); @@ -882,7 +883,7 @@ public function testDeleteAttributeEndpoint() $this->assertStatus($response, 204); $eaCnt = EntityAttribute::count(); - $this->assertEquals(21, $eaCnt); + $this->assertEquals(22, $eaCnt); $avCnt = AttributeValue::count(); $this->assertEquals(21, $avCnt); $aCnt = Attribute::count(); @@ -895,7 +896,7 @@ public function testDeleteAttributeEndpoint() public function testDeleteAttributeFromEntityTypeEndpoint() { $eaCnt = EntityAttribute::count(); - $this->assertEquals(23, $eaCnt); + $this->assertEquals(24, $eaCnt); $avCnt = AttributeValue::count(); $this->assertEquals(25, $avCnt); $entityType = EntityType::find(5)->load('attributes'); @@ -917,7 +918,7 @@ public function testDeleteAttributeFromEntityTypeEndpoint() $this->assertStatus($response, 204); $eaCnt = EntityAttribute::count(); - $this->assertEquals(22, $eaCnt); + $this->assertEquals(23, $eaCnt); $avCnt = AttributeValue::count(); $this->assertEquals(22, $avCnt); $entityType = EntityType::find(5)->load('attributes');