public function testRemove() { $this->mediatypes->add($jpg = new MediaType('jpg', 'image')); $this->mediatypes->add(new MediaType('mp4', 'video')); $this->mediatypes->remove($jpg); $this->assertArrayNotHasKey('image:jpg', $this->mediatypes->all()); }