public function assertIsIncluded(string $type, $id): self
    {
        $identifier = $this->identifier(compact('type', 'id'));

        $this->getDocument()->assertIncludedContainsResource(
            $identifier['type'],
            $identifier['id']
        );

        return $this;
    }
public function assertIsIncluded(string $type, $id): self
    {
        $identifier = $this->identifier(compact('type', 'id'));

        $this->getDocument()->assertIncludedContainsResource(
            $identifier['type'],
            $identifier['id']
        );

        return $this;
    }
public function assertIsIncluded ( string $ type , $ id ) : self { $ identifier = $ this -> identifier ( compact ( 'type' , 'id' ) ) ; $ this -> getDocument ( ) -> assertIncludedContainsResource ( $ identifier [ 'type' ] , $ identifier [ 'id' ] ) ; return $ this ; }
Assert that the expected resource is included in the document.

@param string $type
@param UrlRoutable|string|int|null $id
@return $this
Assert that the expected resource is included in the document .