Use self references and fix class naming

main
Igor Scheller 6 years ago committed by msquare
parent 8da8805f5d
commit 819677c902

@ -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);
}
/**

@ -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')

@ -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

Loading…
Cancel
Save