Skip to content
This repository has been archived by the owner on Mar 24, 2020. It is now read-only.

Commit

Permalink
Fix regression introduced in 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiandedeyne committed Jun 4, 2018
1 parent 71438a4 commit 1c44661
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ComponentFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function find(string $identifier): string
);
}

return "{$componentClass}::class";
return $componentClass;
}

private function expandComponentClassPath(string $path): string
Expand Down
2 changes: 1 addition & 1 deletion tests/NamespacesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function getEnvironmentSetUp($app)
public function it_renders_a_component_from_a_path_with_an_explicit_namespace()
{
$this->assertEquals(
MyComponent::class.'::class',
MyComponent::class,
$this->app->make(ComponentFinder::class)->find('stubs::myComponent')
);
}
Expand Down
4 changes: 2 additions & 2 deletions tests/RootNamespaceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected function getEnvironmentSetUp($app)
public function it_renders_a_component_from_a_path()
{
$this->assertEquals(
MyComponent::class.'::class',
MyComponent::class,
$this->app->make(ComponentFinder::class)->find('myComponent')
);
}
Expand All @@ -29,7 +29,7 @@ public function it_renders_a_component_from_a_path()
public function it_renders_a_component_from_a_nested_path()
{
$this->assertEquals(
NestedComponent::class.'::class',
NestedComponent::class,
$this->app->make(ComponentFinder::class)->find('nested.nestedComponent')
);
}
Expand Down

0 comments on commit 1c44661

Please sign in to comment.