tests/Feature/ArticleTest.php
/**
     * A basic feature test example.
     *
     * @return void
     */
A basic feature test example.
@return void
A basic feature test example . @return void
public function testExample()
    {
        $response = $this->get('/api/articles');
        $array = [
			'Я первая статья',
			'Я вторая статья',
			'Я просто статья'
		];
		$response->assertExactJson(["articles" => $array]);
    }
public function testExample ( ) { $ response = $ this -> get ( '/api/articles' ) ; $ array = [ 'Я первая статья', 'Я вторая статья', 'Я просто статья' ] ; $ response -> assertExactJson ( [ " articles " => $ array ] ) ; }
A basic feature test example.
A basic feature test example .