diff --git a/tests/src/Functional/EntityResource/WorkspaceJsonAnonTest.php b/tests/src/Functional/EntityResource/WorkspaceJsonAnonTest.php index e69de29..1053605 100644 --- a/tests/src/Functional/EntityResource/WorkspaceJsonAnonTest.php +++ b/tests/src/Functional/EntityResource/WorkspaceJsonAnonTest.php @@ -0,0 +1,24 @@ +grantPermissionsToTestedRole(['administer workspaces', 'view_workspace_layla']); + } + + /** + * @inheritDoc + */ + protected function createEntity() { + $workspace = Workspace::create(['id' => 'layla', 'label' => 'Layla']); + $workspace->save(); + return $workspace; + } + + /** + * @inheritDoc + */ + protected function getExpectedNormalizedEntity() { + throw new \Exception('Not yet supported.'); + } + + /** + * @inheritDoc + */ + protected function getNormalizedPostEntity() { + return [ + 'id' => [ + [ + 'value' => 'layla', + ], + ], + 'label' => [ + [ + 'value' => 'Layla', + ], + ], + ]; + } + + /** + * @inheritDoc + */ + protected function getExpectedUnauthorizedAccessMessage($method) { + return parent::getExpectedUnauthorizedAccessMessage($method); // TODO: Change the autogenerated stub + } + + /** + * @inheritDoc + */ + public function testPost() { + return parent::testPost(); // TODO: Change the autogenerated stub + } + + /** + * @inheritDoc + */ + public function testPatch() { + return parent::testPatch(); // TODO: Change the autogenerated stub + } + + /** + * @inheritDoc + */ + public function testDelete() { + return parent::testDelete(); // TODO: Change the autogenerated stub + } + + /** + * @inheritDoc + */ + public function testGet() { + return parent::testGet(); // TODO: Change the autogenerated stub + } + +}