BehatFixtureFactory
class BehatFixtureFactory extends FixtureFactory
Methods
Writes the fixture into the database using DataObjects
Writes the fixture into the database directly using a database manipulation.
Get the ID of an object from the fixture.
Return all of the IDs in the fixture of a particular class name.
Get an object from the fixture.
Remove all fixtures previously defined through {@link createObject()} or {@link createRaw()}, both from the internal fixture mapping and the database.
Details
in FixtureFactory at line 53
$this
define(string $name, array|FixtureBlueprint $defaults = array())
at line 9
DataObject
createObject(string $name, string $identifier, array $data = null)
Writes the fixture into the database using DataObjects
in FixtureFactory at line 105
int
createRaw(string $table, string $identifier, array $data)
Writes the fixture into the database directly using a database manipulation.
Does not use blueprints. Only supports tables with a primary key.
in FixtureFactory at line 126
int
getId(string $class, string $identifier)
Get the ID of an object from the fixture.
in FixtureFactory at line 141
array|false
getIds(string $class)
Return all of the IDs in the fixture of a particular class name.
in FixtureFactory at line 156
$this
setId(string $class, string $identifier, int $databaseId)
in FixtureFactory at line 169
DataObject
get(string $class, string $identifier)
Get an object from the fixture.
in FixtureFactory at line 193
array
getFixtures()
in FixtureFactory at line 207
clear(string $limitToClass = null, bool $metadata = false)
Remove all fixtures previously defined through {@link createObject()} or {@link createRaw()}, both from the internal fixture mapping and the database.
If the $class argument is set, limit clearing to items of this class.