protected function createTestContent() { $contentService = $this->repository->getContentService(); $testContentType = $this->createTestContentType(); $contentCreate = $contentService->newContentCreateStruct($testContentType, 'eng-GB'); $contentCreate->setField('test_required_empty', 'val-11'); $contentCreate->setField('test_required_not_empty', 'val-12'); $contentCreate->setField('test_translatable', 'val-13'); $contentCreate->setField('test_untranslatable', 'val-14'); $contentCreate->setField('test_translatable', 'val-23', 'eng-US'); $contentCreate->sectionId = 1; $contentCreate->ownerId = 14; $contentCreate->remoteId = 'abcdef0123456789abcdef0123456789'; $contentCreate->alwaysAvailable = true; $locationCreates = array(new LocationCreateStruct(array('remoteId' => 'db787a9143f57828dd4331573466a013', 'parentLocationId' => 2)), new LocationCreateStruct(array('remoteId' => 'a3dd7c1c9e04c89e446a70f647286e6b', 'parentLocationId' => 5))); return array($contentService->createContent($contentCreate, $locationCreates), $testContentType); }