Skip to content
Snippets Groups Projects
Commit 70161460 authored by Christopher C. Wells's avatar Christopher C. Wells
Browse files

Update tests for change to data output format

parent 4dadef60
No related branches found
No related tags found
No related merge requests found
......@@ -25,10 +25,10 @@ public function testImageStylesOnJsonApiResponse() {
// Assert only the two configured image styles (large, thumbnail).
$styles = $output['included'][0]['attributes']['image_style_uri'];
$this->assertCount(2, $styles);
$this->assertNotEmpty(array_column($styles, 'large'));
$this->assertNotEmpty(array_column($styles, 'thumbnail'));
$this->assertEmpty(array_column($styles, 'wide'));
$this->assertEmpty(array_column($styles, 'medium'));
$this->assertObjectHasAttribute('large', $styles);
$this->assertObjectHasAttribute('thumbnail', $styles);
$this->assertObjectNotHasAttribute('wide', $styles);
$this->assertObjectNotHasAttribute('medium', $styles);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment