public static function clearRegisteredPostTypes() { static::$postTypes = []; }
public function testClearRegisteredPostTypes() { Post::registerPostType('page', "\\Corcel\\Page"); Post::clearRegisteredPostTypes(); $page = Post::type('page')->first(); $this->assertInstanceOf("\\Corcel\\Post", $page); }