/** * @test * @expectedException \Searchperience\Common\Exception\InvalidArgumentException */ public function getByForeignIdThrowsInvalidArgumentExceptionOnInvalidArgument() { $this->documentRepository = new \Searchperience\Api\Client\Domain\Document\DocumentRepository(); $this->documentRepository->getByForeignId(NULL); }
/** * @param string $foreignId * @param int $priority * @return bool */ public function markDocumentForNoIndexByForeignId($foreignId, $priority = Document::INDEX_PRIORITY_HIGH) { $document = $this->documentRepository->getByForeignId($foreignId); return $this->markDocumentForNoIndex($document, $priority); }