mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-27 04:08:57 +02:00
Fixed tests.
This commit is contained in:
parent
3f70b07614
commit
e16ae9390f
3 changed files with 11 additions and 11 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
@ -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'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue