Ad
Test Api Laravel Feature Response 404 Forever
When doing any test is returning me 404, and through the swagger url api/lojas/uuid he responds normally.
File:LojasTest.php
namespace Tests\Feature;
use Tests\TestCase;
class LojasTest extends TestCase
/**
* A basic functional test example.
*
* @return void
*/
{
public function testNenhumRecursoEncontradoParaOsCriteriosInformados(): void
{
$response = $this->get('/lojas/617752d2-175e-11ea-ae6f-0242ac120003');
$response->assertStatus(200);
}
}
File:.ENV
APP_DEBUG=true
DEBUGBAR_ENABLED=false
APP_LOG_LEVEL=debug
APP_URL=http://localhost
Error:
http://localhost/lojas/617752d2-175e-11ea-ae6f-0242ac120003 2019-12-06 17:43:23 GET 404 Symfony
Expected status code 200 but received 404. Failed asserting that false is true. /opt/project/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:151 /opt/project/tests/Feature/LojasTest.php:21
Ad
Answer
Resolved with the command.
php artisan serve
Ad
source: stackoverflow.com
Related Questions
- → "failed to open stream" error when executing "migrate:make"
- → October CMS Plugin Routes.php not registering
- → OctoberCMS Migrate Table
- → OctoberCMS Rain User plugin not working or redirecting
- → October CMS Custom Mail Layout
- → October CMS - How to correctly route
- → October CMS - Conditionally Load a Different Page
- → Make a Laravel collection into angular array (octobercms)
- → In OctoberCMS how do you find the hint path?
- → How to register middlewares in OctoberCMS plugin?
- → Validating fileupload(image Dimensions) in Backend Octobercms
- → OctoberCMS Fileupload completely destroys my backend
- → How do I call the value from another backed page form and use it on a component in OctoberCms
Ad