Skip to content

Commit

Permalink
Merge pull request schmittjoh#53 from adrienbrault/fix-21error
Browse files Browse the repository at this point in the history
Fix 21error
  • Loading branch information
schmittjoh committed Jul 6, 2012
2 parents 8a5705d + b3babff commit 8924c8f
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 17 deletions.
2 changes: 0 additions & 2 deletions Form/ChoosePaymentMethodType.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
$builder->add('method', 'choice', array(
'choices' => $this->buildChoices($options['available_methods']),
'expanded' => true,
'index_strategy' => ChoiceList::COPY_CHOICE,
'value_strategy' => ChoiceList::COPY_CHOICE,
));

foreach ($options['available_methods'] as $method) {
Expand Down
1 change: 1 addition & 0 deletions Tests/Functional/BaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ protected final function importDatabaseSchema()
$metadata = $em->getMetadataFactory()->getAllMetadata();
if (!empty($metadata)) {
$schemaTool = new \Doctrine\ORM\Tools\SchemaTool($em);
$schemaTool->dropDatabase();
$schemaTool->createSchema($metadata);
}
}
Expand Down
2 changes: 0 additions & 2 deletions Tests/Functional/PaymentWorkflowTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ class PaymentWorkflowTest extends BaseTestCase
{
public function testPaymentDetails()
{
$this->markTestSkipped('Needs to be run separately because of some DB locking issues.');

$client = $this->createClient();
$this->importDatabaseSchema();

Expand Down
21 changes: 10 additions & 11 deletions Tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
<?php

// this file searches for the autoload file of your project, and includes it
$dir = __DIR__;
$lastDir = null;
while (($dir = dirname($dir)) && $dir !== $lastDir) {
$lastDir = $dir;

if (file_exists($file = $dir.'/app/autoload.php')) {
require_once $file;
return;
}
use Doctrine\Common\Annotations\AnnotationRegistry;

// Composer
if (file_exists(__DIR__.'/../vendor/autoload.php')) {
$loader = require_once __DIR__.'/../vendor/autoload.php';

AnnotationRegistry::registerLoader(array($loader, 'loadClass'));

return $loader;
}

throw new \RuntimeException('Could not locate the project\'s bootstrap.php.cache. If your bundle is not inside a project, you need to replace this bootstrap file.');
throw new \RuntimeException('Could not find vendor/autoload.php, make sure you ran composer.');
9 changes: 7 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,13 @@
"symfony/framework-bundle": ">=2.0,<2.2-dev",
"ext-mcrypt": "*"
},
"recommend": {
"doctrine/doctrine-bundle": "dev-master"
"require-dev": {
"sensio/framework-extra-bundle": "*",
"doctrine/doctrine-bundle": "*",
"doctrine/orm": "*",
"jms/payment-paypal-bundle": "*",
"jms/aop-bundle": "*",
"jms/di-extra-bundle": "*"
},
"autoload": {
"psr-0": { "JMS\\Payment\\CoreBundle": "" }
Expand Down

0 comments on commit 8924c8f

Please sign in to comment.