public function test_it_throws_exception_if_cant_map_to_driver() { $factory = new UrlGeneratorFactory(); $media = factory(Media::class)->make(); $this->expectException(MediaUrlException::class); $factory->create($media); }