Skip to content

Commit

Permalink
Add additional tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <crynobone@gmail.com>
  • Loading branch information
crynobone committed Jan 29, 2019
1 parent ae64d1f commit 2b11dbe
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/Unit/WidgetServiceProviderTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

namespace Orchestra\Widget\TestCase\Unit;

use PHPUnit\Framework\TestCase;
use Orchestra\Widget\WidgetServiceProvider;

class WidgetServiceProviderTest extends TestCase
{
/** @test */
public function it_deferred_the_service_registration()
{
$stub = new WidgetServiceProvider(null);

$this->assertTrue($stub->isDeferred());
}

/** @test */
public function it_provides_expected_services()
{
$stub = new WidgetServiceProvider(null);

$this->assertContains('orchestra.widget', $stub->provides());
}
}

0 comments on commit 2b11dbe

Please sign in to comment.