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

Commit

Permalink
- Yet another code cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
akadlec committed Mar 18, 2018
1 parent a59c40a commit 5918a4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions tests/IPubTests/ConfirmationDialog/ComponentTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,13 @@ namespace IPubTests\ConfirmationDialog;

use Nette;
use Nette\Application;
use Nette\Application\Routers;
use Nette\Application\UI;
use Nette\Utils;

use Tester;
use Tester\Assert;

use IPub;
use IPub\ConfirmationDialog;
use IPub\ConfirmationDialog\Exceptions;

require __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'bootstrap.php';
require __DIR__ . DS . 'libs' . DS . 'RouterFactory.php';
Expand Down
9 changes: 4 additions & 5 deletions tests/IPubTests/ConfirmationDialog/ExtensionTest.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ use Nette;
use Tester;
use Tester\Assert;

use IPub;
use IPub\ConfirmationDialog;

require __DIR__ . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'bootstrap.php';
Expand All @@ -45,14 +44,14 @@ class ExtensionTest extends Tester\TestCase
// Get component factory
$factory = $dic->getService('confirmationDialog.dialog');

Assert::true($factory instanceof IPub\ConfirmationDialog\Components\IControl);
Assert::true($factory->create() instanceof IPub\ConfirmationDialog\Components\Control);
Assert::true($factory instanceof ConfirmationDialog\Components\IControl);
Assert::true($factory->create() instanceof ConfirmationDialog\Components\Control);

// Get confirmer factory
$factory = $dic->getService('confirmationDialog.confirmer');

Assert::true($factory instanceof IPub\ConfirmationDialog\Components\IConfirmer);
Assert::true($factory->create() instanceof IPub\ConfirmationDialog\Components\Confirmer);
Assert::true($factory instanceof ConfirmationDialog\Components\IConfirmer);
Assert::true($factory->create() instanceof ConfirmationDialog\Components\Confirmer);
}

/**
Expand Down

0 comments on commit 5918a4e

Please sign in to comment.