Created
December 21, 2015 10:00
-
-
Save vasildakov-zz/8a8e0b5cc725a6fa1aa2 to your computer and use it in GitHub Desktop.
DepotControllerTest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Ws\Fleet\UiBundle\Tests\Controller\DepotControllerTest.php | |
namespace Ws\Fleet\UiBundle\Tests\Controller; | |
use Ws\Fleet\UiBundle\Controller\DepotController; | |
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\HttpFoundation\Request; | |
class DepotControllerTest extends \PHPUnit_Framework_TestCase | |
{ | |
/** | |
* @author Vasil Dakov <[email protected]> | |
* @covers \Ws\Fleet\UiBundle\Controller\DepotController::checkInGoodsAction() | |
*/ | |
public function testCheckInGoodsAction() | |
{ | |
$request = new Request(); | |
$request->setMethod('GET'); | |
$controller = new DepotController; | |
$response = $controller->checkInGoodsAction(new Request); | |
$this->assertInstanceOf('Symfony\Component\HttpFoundation\Response', $response); | |
$this->assertSame(200, $response->getStatusCode()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment