Domain\Matter\Http\MatterControllerTest::test_store_by_post PHP Method

test_store_by_post() public method

public test_store_by_post ( )
    public function test_store_by_post()
    {
        $matter = ['name' => 'Matter x', 'workload' => 50];
        $this->post('api/v1/matter/', $matter);
        $this->seeStatusCode(200);
        $this->seeJson(['name' => 'Matter x']);
        $this->assertInstanceOf(Matter::class, $this->response->original);
        $this->seeInDatabase('matters', ['id' => $this->response->original->id]);
    }