CodeExplorer assertMediaEventThrown example
static::
assertCount( 1,
$responseData['data'
]['attributes'
]['mediaType'
]['flags'
],
print_r($responseData['data'
]['attributes'
]['mediaType'
]['flags'
], true
) );
static::
assertSame( ImageType::TRANSPARENT,
$responseData['data'
]['attributes'
]['mediaType'
]['flags'
][0
],
print_r($responseData['data'
]['attributes'
]['mediaType'
]['flags'
], true
) );
$this->
assertMediaEventThrown();
} private function assertMediaEventThrown(): void
{ static::
assertNotNull($this->thrownMediaEvent
);
static::
assertEquals($this->mediaId,
$this->thrownMediaEvent->
getMediaId());
}}