/** * @test * @expectedException \Silk\Post\Exception\ModelPostTypeMismatchException */ function it_blows_up_if_instantiated_with_a_non_page_post_type() { $post_id = $this->factory->post->create(['post_type' => 'post']); // this will blow up since the post id is for a post_type of `post` Page::fromID($post_id); }