createUser('tester', [ 'data' => [ 'Lead' => false, 'Opportunity' => [ 'create' => 'no', 'read' => 'own', 'edit' => 'no', 'delete' => 'no', 'stream' => 'no', ], ] ]); $this->auth('tester'); $this->setApplication($this->createApplication()); $data = $this->getInjectableFactory()->create(LanguageService::class)->getDataForFrontend(); $data = json_decode(json_encode($data)); $this->assertNotNull($data?->Lead?->options?->source); $this->assertNull($data?->Lead?->options?->status); } }