public function testGetSelectionByIdNegative() { $selectionId = 15; $this->selectionFirst->expects($this->any())->method('getSelectionId')->will($this->returnValue(16)); $this->selectionSecond->expects($this->any())->method('getSelectionId')->will($this->returnValue(17)); $this->model->setSelections([$this->selectionFirst, $this->selectionSecond]); $this->assertNull($this->model->getSelectionById($selectionId)); }