Domain\Config\Http\ConfigControllerTest::test_index_returns_configs_by_get PHP 메소드

test_index_returns_configs_by_get() 공개 메소드

    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]);
        }
    }