/** * @test */ function it_can_create_a_page_from_a_new_instance() { $model = new Page(); $model->post_title = 'some title'; $model->save(); $this->assertGreaterThan(0, $model->id); $this->assertSame('page', $model->post_type); }