Fixed tests.

This commit is contained in:
Jan Böhmer 2020-01-01 17:13:04 +01:00
parent 3f70b07614
commit e16ae9390f
3 changed files with 11 additions and 11 deletions

View file

@ -107,11 +107,11 @@ class Storelocation extends PartsContainingDBElement
protected $storage_type; protected $storage_type;
/** /**
* //@ORM\ManyToMany(targetEntity="Part", fetch="EXTRA_LAZY") * @ORM\ManyToMany(targetEntity="Part", fetch="EXTRA_LAZY")
* //@ORM\JoinTable(name="part_lots", * @ORM\JoinTable(name="part_lots",
* // joinColumns={@ORM\JoinColumn(name="id_store_location", referencedColumnName="id")}, * joinColumns={@ORM\JoinColumn(name="id_store_location", referencedColumnName="id")},
* // inverseJoinColumns={@ORM\JoinColumn(name="id_part", referencedColumnName="id")} * inverseJoinColumns={@ORM\JoinColumn(name="id_part", referencedColumnName="id")}
* //) * )
*/ */
protected $parts; protected $parts;

View file

@ -106,11 +106,11 @@ class Supplier extends Company
protected $shipping_costs; protected $shipping_costs;
/** /**
* //@ORM\ManyToMany(targetEntity="Part", fetch="EXTRA_LAZY") * @ORM\ManyToMany(targetEntity="Part", fetch="EXTRA_LAZY")
* //@ORM\JoinTable(name="orderdetails", * @ORM\JoinTable(name="orderdetails",
* // joinColumns={@ORM\JoinColumn(name="id_supplier", referencedColumnName="id")}, * joinColumns={@ORM\JoinColumn(name="id_supplier", referencedColumnName="id")},
* // inverseJoinColumns={@ORM\JoinColumn(name="part_id", referencedColumnName="id")} * inverseJoinColumns={@ORM\JoinColumn(name="part_id", referencedColumnName="id")}
* //) * )
*/ */
protected $parts; protected $parts;

View file

@ -142,6 +142,6 @@ class RedirectControllerTest extends WebTestCase
$this->client->followRedirects(false); $this->client->followRedirects(false);
$this->client->request('GET', '/part/3'); $this->client->request('GET', '/part/3');
$this->assertEquals("/$locale/user/settings", $this->client->getResponse()->headers->get('Location')); $this->assertEquals('http://localhost' . "/$locale/user/settings", $this->client->getResponse()->headers->get('Location'));
} }
} }