public function testJob_Is_Not_Find() { $this->fixture->shouldReceive('getJobByVacancyId')->with(2)->andReturn(\Mockery::self())->atLeast(1); $this->fixture->shouldReceive('extendJob')->andReturn(true)->atLeast(1); $parser = new Parser([], $this->fixture); $parser->parseVacancy(2, null); }