STOP!
If you are realy looking to search that, click 'this link'.
function Car(make, model, year, owner) {
this.make = make;
this.model = model;
this.year = year;
this.owner = owner;
}
<?php
namespace TestsFeature;
use TestsTestCase;
class PostTest extends TestCase
{
/** @test*/
public function canCreateAPost()
{
$data = [
'title' => $this->faker->sentence,
'description' => $this->faker->paragraph
];
$response = $this->json('POST', '/api/v1/posts', $data);
$response->assertStatus(201)
->assertJson(compact('data'));
$this->assertDatabaseHas('posts', [
'title' => $data['title'],
'description' => $data['description']
]);
}
}