/** * @test */ public function verifyDocumentStateIsErrorAndIsDuplicateAtTheSameTime() { $expectedNotifications = array(\Searchperience\Api\Client\Domain\Document\Document::IS_ERROR, \Searchperience\Api\Client\Domain\Document\Document::IS_DUPLICATE); $this->document->setIsDuplicateOf(12); $this->document->setErrorCount(1); $notifications = $this->document->getNotifications(); $this->assertInternalType('array', $notifications); $this->assertEquals($notifications, $expectedNotifications); }