public function setUp() { parent::setUp(); $user = new User((object) ['id' => 'USERID']); $this->collection = new $this->class(['user' => $user]); $this->collection->setRequest($this->request); $this->collection->setContainer($this->container); }