SyncTipsTest.php (757B)
1 <?php 2 3 namespace PartKeepr\TipOfTheDayBundle\Tests; 4 5 use PartKeepr\CoreBundle\Tests\WebTestCase; 6 7 class SyncTipsTest extends WebTestCase 8 { 9 public function setUp() 10 { 11 $this->loadFixtures([]); 12 } 13 14 public function testSyncTips() 15 { 16 $this->getContainer()->get('partkeepr.tip_of_the_day_service')->syncTips(); 17 18 $dql = "SELECT COUNT(p) FROM PartKeepr\TipOfTheDayBundle\Entity\TipOfTheDay p"; 19 20 $query = $this->getContainer()->get('doctrine.orm.entity_manager')->createQuery($dql); 21 22 //$this->assertGreaterThan(1, $query->getSingleScalarResult()); 23 $this->markTestSkipped( 24 'Synchronization of the tips of the day (PartKeepr\TipOfTheDayBundle\Tests\SyncTipsTest) skipped' 25 ); 26 } 27 }