public function assertDeleted(array $expected = null, bool $strict = true): self
    {
        if (is_null($expected)) {
            return $this->assertNoContent();
        }

        return $this->assertMetaWithoutData($expected, $strict);
    }
public function assertDeleted(array $expected = null, bool $strict = true): self
    {
        if (is_null($expected)) {
            return $this->assertNoContent();
        }

        return $this->assertMetaWithoutData($expected, $strict);
    }
public function assertDeleted ( array $ expected = null , bool $ strict = true ) : self { if ( is_null ( $ expected ) ) { return $ this -> assertNoContent ( ) ; } return $ this -> assertMetaWithoutData ( $ expected , $ strict ) ; }
Assert response is a JSON API resource deleted response.

The JSON API spec says that:

- A server MUST return a 204 No Content status code if a deletion request is successful
and no content is returned.
- A server MUST return a 200 OK status code if a deletion request is successful and the server responds
with only top-level meta data.

@param array|null $expected
the expected top-level meta, or null for no content response.
@param bool $strict
@return $this
Assert response is a JSON API resource deleted response .