public function testGetPersistedIncludesPrimaryKey() { $vehicle = new Vehicle(); $vehicle->setPrimaryKey('identifier'); $attributes = $vehicle->getPersistedAttributes(); sort($attributes); $this->assertEquals(['color', 'created_at', 'identifier', 'owner_id', 'type', 'updated_at'], $attributes); }