initDatabase(); $instance = (new $model())->factory()->create(); $this->assertInstanceOf(Model::class, $instance); } /** * @covers \Database\Factories\Engelsystem\Models\User\StateFactory */ public function testStateFactoryArrived(): void { $this->initDatabase(); /** @var State $instance */ $instance = (new State())->factory()->arrived()->create(); $this->assertInstanceOf(Model::class, $instance); $this->assertTrue($instance->arrived); } }