Domain\Config\Http\ConfigControllerTest::test_index_returns_configs_by_get PHP Method

test_index_returns_configs_by_get() public method

    public function test_index_returns_configs_by_get()
    {
        Config::whereNotNull('field')->delete();
        $configs = factory(Config::class, 3)->create();
        $this->get('api/v1/config');
        $this->seeStatusCode(200);
        foreach ($configs as $config) {
            $this->seeJson(['field' => $config->field]);
        }
    }