Skip to content

Commit

Permalink
Add code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van Asselt committed Apr 25, 2024
1 parent 13948ed commit 622d2aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Domain/IndexManagement/DirectIndexConfiguration.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@

namespace JeroenG\Explorer\Domain\IndexManagement;

use Webmozart\Assert\Assert;

final class DirectIndexConfiguration implements IndexConfigurationInterface
{
private function __construct(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public function test_it_creates_the_config_from_array(): void
'a' => [
'aliased' => true,
'settings' => [ 'test' => true ],
'model' => 'model',
'properties' => [
'fld' => [
'type' => 'text',
Expand All @@ -41,6 +42,7 @@ public function test_it_creates_the_config_from_array(): void
self::assertEquals($indices['a']['properties'], $config->getProperties());
self::assertEquals($indices['a']['settings'], $config->getSettings());
self::assertEquals('a', $config->getName());
self::assertEquals('model', $config->getModel());
}

public function test_it_normalizes_the_configuration(): void
Expand Down Expand Up @@ -197,6 +199,7 @@ public function test_it_sets_alias_from_aliased_model(): void

self::assertInstanceOf(AliasedIndexConfiguration::class, $config);
self::assertTrue($config->getAliasConfiguration()->shouldOldAliasesBePruned());
self::assertEquals(':searchable_as:', $config->getAliasConfiguration()->getAliasName());
}

public function test_it_has_pruning_for_aliased_indices_by_default(): void
Expand Down

0 comments on commit 622d2aa

Please sign in to comment.