write test for azmayesh type entity

This commit is contained in:
2024-11-17 14:13:25 +03:30
parent 117bf0269e
commit a84b1f9469
14 changed files with 588 additions and 9 deletions

View File

@@ -3,6 +3,7 @@
namespace Tests\Feature\V3\AzmayeshSample;
use App\Models\Azmayesh;
use App\Models\AzmayeshSample;
use App\Models\AzmayeshType;
use App\Models\Province;
use App\Models\User;
@@ -73,7 +74,9 @@ class StoreTest extends TestCase
$this->assertDatabaseHas('azmayesh_samples', [
'azmayesh_id' => $data['azmayesh_id'],
'data' => $data['data'],
// 'data' => $data['data'],
]);
$this->assertEquals(AzmayeshSample::first()->data, $data['data']);
}
}