Passed
Pull Request — master (#17)
by Gordon
02:56
created

BulkIndexerFactoryTest   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 5
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testFactory() 0 6 1
1
<?php declare(strict_types = 1);
2
3
namespace Suilven\FreeTextSearch\Tests\Factory;
4
5
use SilverStripe\Dev\SapphireTest;
6
use Suilven\FreeTextSearch\Factory\BulkIndexerFactory;
7
8
class BulkIndexerFactoryTest extends SapphireTest
9
{
10
    public function testFactory(): void
11
    {
12
        $factory = new BulkIndexerFactory();
13
        $bulkIndexer = $factory->getBulkIndexer();
14
        $this->assertInstanceOf('Suilven\FreeTextSearch\Interfaces\BulkIndexer', $bulkIndexer);
15
        $this->assertInstanceOf('Suilven\FreeTextSearch\Tests\Mock\BulkIndexer', $bulkIndexer);
16
    }
17
}
18