Use self references and fix class naming

This commit is contained in:
Igor Scheller 2019-04-24 13:50:01 +02:00 committed by msquare
parent 8da8805f5d
commit 819677c902
3 changed files with 4 additions and 4 deletions

View File

@ -50,7 +50,7 @@ class Application extends Container
$this->instance(Container::class, $this);
$this->instance(Application::class, $this);
$this->instance(IlluminateContainer::class, $this);
$this->bind(ContainerInterface::class, Application::class);
$this->bind(ContainerInterface::class, self::class);
}
/**

View File

@ -40,7 +40,7 @@ class LogEntry extends BaseModel
*/
public static function filter($keyword = null)
{
$query = LogEntry::query()
$query = self::query()
->select()
->orderByDesc('created_at')
->orderByDesc('id')

View File

@ -4,9 +4,9 @@ namespace Engelsystem\Test\Unit\Container;
use Engelsystem\Container\ServiceProvider;
use Engelsystem\Test\Unit\Container\Stub\ServiceProviderImplementation;
use Engelsystem\Test\Unit\ServiceProviderTest;
use Engelsystem\Test\Unit\ServiceProviderTest as ServiceProviderTestCase;
class ConfigServiceProviderTest extends ServiceProviderTest
class ServiceProviderTest extends ServiceProviderTestCase
{
/**
* @covers \Engelsystem\Container\ServiceProvider::__construct