Skip to content

Instantly share code, notes, and snippets.

🏠
Working from home

Benoît Mariaux benoitMariaux

🏠
Working from home
  • Saint-Gobain
  • Paris - France
View GitHub Profile
View gist:7581619
<?php
namespace Ylly\Extension\YllyEcommerceBundle\Tests\Controller;
use Ylly\CmsBundle\Test\SiteWebTestCase;
use Ylly\Extension\SiteCustomerBundle\Entity\SiteCustomer;
use Ylly\Extension\YllyEcommerceBundle\DataInitializer\DataInitializer;
/**
* @group site
*/
View gist:7581865
<?php
namespace Ylly\Extension\ReminderBundle\Tests\Controller;
use Ylly\CmsBundle\Test\SiteWebTestCase;
use Ylly\Extension\SiteCustomerBundle\Entity\SiteCustomer;
/**
* @group site
*/
class SiteController_subscribeVetTest extends SiteWebTestCase
View gist:7582680
benoit@ubuntu:~/yProx(ghi-1047)$ hub pull-request -i 1047 Yproximite:master -h benoitMariaux:ghi-1047
Error creating pull request: Unprocessable Entity (HTTP 422)
Invalid value for "issue": "1047"
View gist:7582677
benoit@ubuntu:~/yProx(ghi-1047)$ hub pull-request -i 1047 Yproximite:master -h benoitMariaux:ghi-1047
Error creating pull request: Unprocessable Entity (HTTP 422)
Invalid value for "issue": "1047"
View gist:7586056
<?php
namespace Ylly\Extension\SiteCustomerBundle\Controller;
use Ylly\CmsBundle\Controller\AdminBaseController;
use Ylly\Extension\SiteCustomerBundle\Entity\SiteCustomer;
use Ylly\Extension\SiteCustomerBundle\Form\SiteCustomerForm;
use Ylly\Extension\SiteCustomerBundle\Form\AdminCreateForm;
class AdminController extends AdminBaseController
View gist:7678787
public function testContent()
{
$client = $this->makeClient(true);
$crawler = $client->request('GET', '/site/1/contents');
}
View gist:7691584
public function testContent()
{
$content = $this->getEm()->getRepository('StoreLocatorBundle:StoreLocatorContent')->findOneBy(array(
'storeLocator' => $this->storeLocator->getId(),
));
$url = $this->getUrl('content_test', array(
'content_id' => $content->getId(),
'site_id' => 1,
'_allow_base_site' => 1,
View gist:7773105
Symfony > doctrine:migrations:migrate
Application Migrations
WARNING! You are about to execute a database migration that could result in schema changes and data lost. Are you sure you wish to continue? (y/n)y
Migrating up to 20131203165923 from 20131108083116
++ migrating 20131129111111
View gist:7984635
127.0.0.1 testweb.fr
127.0.0.1 basesite.testweb.fr
127.0.0.1 inscription.testweb.fr admin.testweb.fr
127.0.0.1 old-major.testweb.fr napolean.testweb.fr snowball.testweb.fr squealer.testweb.fr
127.0.0.1 minimus.testweb.fr
You can’t perform that action at this time.