fork download
  1. <?php
  2.  
  3. public function testCategoryCreate()
  4. {
  5. $user = factory(User::class)->make();
  6.  
  7.  
  8. $category = factory(Category::class)->make();
  9. $category = $category->toArray();
  10.  
  11. $response = $this->actingAs($user)
  12. ->post(route('admin.category.store'), $category);
  13.  
  14. $response->assertCreated();
  15. }
Runtime error #stdin #stdout #stderr 0.02s 24180KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Parse error:  syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /home/NKASTS/prog.php on line 3