Skip to content

Commit

Permalink
update tests to get them working
Browse files Browse the repository at this point in the history
  • Loading branch information
hackzilla committed Jun 29, 2017
1 parent 47503b2 commit 287f68d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions Tests/Component/TicketFeaturesTest.php
Expand Up @@ -3,8 +3,8 @@
namespace Hackzilla\Bundle\TicketBundle\Tests\Extension;

use Hackzilla\Bundle\TicketBundle\Component\TicketFeatures;
use Hackzilla\Bundle\TicketBundle\Entity\TicketMessage;
use Hackzilla\Bundle\TicketBundle\Entity\TicketMessageWithAttachment;
use Hackzilla\TicketMessage\Entity\TicketMessage;
use Hackzilla\TicketMessage\Entity\TicketMessageWithAttachment;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class TicketFeaturesTest extends WebTestCase
Expand Down Expand Up @@ -48,8 +48,8 @@ public function featureAttachmentProvider()
{
return [
[[], TicketMessage::class, null],
[['attachment' => true], TicketMessage::class, false],
[['attachment' => true], TicketMessageWithAttachment::class, true],
[['attachment'], TicketMessage::class, false],
[['attachment'], TicketMessageWithAttachment::class, true],
];
}
}
4 changes: 2 additions & 2 deletions Tests/Form/Type/TicketMessageTypeTest.php
Expand Up @@ -3,9 +3,9 @@
namespace Hackzilla\Bundle\TicketBundle\Tests\Form\Type;

use Hackzilla\Bundle\TicketBundle\Component\TicketFeatures;
use Hackzilla\Bundle\TicketBundle\Entity\TicketMessage;
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketMessageType;
use Hackzilla\Bundle\TicketBundle\Manager\UserManagerInterface;
use Hackzilla\TicketMessage\Entity\TicketMessage;
use Hackzilla\TicketMessage\Manager\UserManagerInterface;
use Symfony\Component\Form\PreloadedExtension;
use Symfony\Component\Form\Test\TypeTestCase;

Expand Down
8 changes: 4 additions & 4 deletions Tests/Form/Type/TicketTypeTest.php
Expand Up @@ -3,11 +3,11 @@
namespace Hackzilla\Bundle\TicketBundle\Tests\Form\Type;

use Hackzilla\Bundle\TicketBundle\Component\TicketFeatures;
use Hackzilla\Bundle\TicketBundle\Entity\Ticket;
use Hackzilla\Bundle\TicketBundle\Entity\TicketMessage;
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketMessageType;
use Hackzilla\Bundle\TicketBundle\Form\Type\TicketType;
use Hackzilla\Bundle\TicketBundle\Manager\UserManagerInterface;
use Hackzilla\TicketMessage\Entity\Ticket;
use Hackzilla\TicketMessage\Entity\TicketMessage;
use Hackzilla\TicketMessage\Manager\UserManagerInterface;
use Symfony\Component\Form\PreloadedExtension;
use Symfony\Component\Form\Test\TypeTestCase;

Expand Down Expand Up @@ -41,7 +41,7 @@ public function testSubmitValidData()
{
$formData = [];

$data = new \Hackzilla\Bundle\TicketBundle\Entity\Ticket();
$data = new Ticket();

$form = $this->factory->create(TicketType::class);

Expand Down

0 comments on commit 287f68d

Please sign in to comment.