user = $this->createUser(['add fedora resource entities']); // Create a test entity. $this->entity = FedoraResource::create([ "type" => "rdf_source", "uid" => $this->user->get('uid'), "name" => "Test Fixture", "langcode" => "und", "status" => 1, ]); $this->entity->save(); } }