A
A
Alexander2018-02-01 14:52:37
Laravel
Alexander, 2018-02-01 14:52:37

Test not working?

There is 1 test:

<?php

declare(strict_types=1);

namespace Tests\Feature;

use Elastica\Client;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;

final class ServiceListTest extends TestCase
{
    /** @var \Elastica\Client */
    private $client;

    use RefreshDatabase;

    public function __construct(?string $name = null, array $data = [], string $dataName = '')
    {
        parent::__construct($name, $data, $dataName);

        $this->client = new Client();
    }

    public function setUp()
    {
        parent::setUp(); // TODO: Change the autogenerated stub
    }

    public function tearDown()
    {
        parent::tearDown(); // TODO: Change the autogenerated stub
    }

    /**
     * @test
     */
    public function easyTest()
    {
        self::assertTrue(true);
    }
}

It does not work, or rather does not pass, it just hangs. But it is worth removing use RefreshDatabase; then everything immediately starts working.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question