/** * Get projects * * @return array|\LaravelKeenIO\Options\Project[] */ protected function getProjects() { /** @var Project[]|array $projects */ $projects = []; foreach ($this->moduleOptions->get('projects') as $title => $project) { $projects[$title] = new Project($project); } return $projects; }
public function testGet() { $key = 'a'; $result = $this->options->get($key); $this->assertSame($this->demoOptions[$key], $result); }