Skip to content

Commit 84fd51b

Browse files
limenetactions-user
authored andcommitted
Fix styling
1 parent 4066832 commit 84fd51b

File tree

4 files changed

+6
-15
lines changed

4 files changed

+6
-15
lines changed

tests/Feature/FeatureTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
namespace Limenet\LaravelElasticaBridge\Tests\Feature;
44

5-
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\CustomerIndex;
6-
75
class FeatureTest extends TestCase
86
{
97

108
/** @test */
119
public function status()
1210
{
13-
$this->assertSame(0, $this->artisan('elastica-bridge:status')->run());
11+
$this->assertSame(0, $this->artisan('elastica-bridge:status')->run());
1412
}
1513
}

tests/Feature/TestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Limenet\LaravelElasticaBridge\Tests\Feature;
44

5-
use Limenet\LaravelElasticaBridge\Client\ElasticaClient;
65
use Limenet\LaravelElasticaBridge\Repository\IndexRepository;
76
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\CustomerIndex;
87
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\ProductIndex;
@@ -19,6 +18,6 @@ public function setUp(): void
1918

2019
$this->customerIndex = $this->app->make(CustomerIndex::class);
2120
$this->productIndex = $this->app->make(ProductIndex::class);
22-
$this->indexRepository =$this->app->make(IndexRepository::class);
21+
$this->indexRepository = $this->app->make(IndexRepository::class);
2322
}
2423
}

tests/TestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ public function setUp(): void
2020
fn (string $modelName) => 'Limenet\\LaravelElasticaBridge\\Tests\\Database\\Factories\\'.class_basename($modelName).'Factory'
2121
);
2222
}
23-
protected function resolveApplicationConfiguration($app){
23+
protected function resolveApplicationConfiguration($app)
24+
{
2425
parent::resolveApplicationConfiguration($app);
2526

2627
$app['config']->set('elastica-bridge.indices', [CustomerIndex::class,ProductIndex::class]);

tests/Unit/RepositoryTest.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,10 @@
22

33
namespace Limenet\LaravelElasticaBridge\Tests\Unit;
44

5-
use Elastica\Index;
6-
use Elastica\Query;
7-
use Elastica\Response;
8-
use Elastica\ResultSet;
9-
use Limenet\LaravelElasticaBridge\Exception\Index\BlueGreenIndicesIncorrectlySetupException;
105
use Limenet\LaravelElasticaBridge\Index\IndexInterface;
116
use Limenet\LaravelElasticaBridge\Repository\IndexRepository;
127
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\CustomerIndex;
138
use Limenet\LaravelElasticaBridge\Tests\App\Elasticsearch\ProductIndex;
14-
use Limenet\LaravelElasticaBridge\Tests\App\Models\Customer;
15-
use RuntimeException;
169

1710
class RepositoryTest extends TestCase
1811
{
@@ -26,13 +19,13 @@ public function setUp():void
2619

2720
$this->customerIndex = $this->app->make(CustomerIndex::class);
2821
$this->productIndex = $this->app->make(ProductIndex::class);
29-
$this->indexRepository =$this->app->make(IndexRepository::class);
22+
$this->indexRepository = $this->app->make(IndexRepository::class);
3023
}
3124
/** @test */
3225
public function all()
3326
{
3427
$this->assertCount(2, $this->indexRepository->all());
35-
foreach($this->indexRepository->all() as $index){
28+
foreach ($this->indexRepository->all() as $index) {
3629
$this->assertInstanceOf(IndexInterface::class, $index);
3730
}
3831
}

0 commit comments

Comments
 (0)