Test Failed
Push — master ( b021d0...538ee6 )
by Yunus Emre
03:51
created

ProductTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 1
eloc 6
dl 0
loc 13
rs 10
c 2
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A user_can_list_products() 0 10 1
1
<?php
2
3
namespace TarfinLabs\Parasut\Tests;
4
5
class ProductTest extends TestCase
6
{
7
    /** @test */
8
    public function user_can_list_products(): void
9
    {
10
        ProductMock::all();
0 ignored issues
show
Bug introduced by
The type TarfinLabs\Parasut\Tests\ProductMock was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
        $productRepository = new ProductRepository();
0 ignored issues
show
Bug introduced by
The type TarfinLabs\Parasut\Tests\ProductRepository was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
14
        $products = $productRepository->all();
15
16
        $this->assertNotNull(Product::all());
17
        $this->assertInstanceOf(Product::class, $products->first());
18
    }
19
}
20