BehatFixtureFactory
class BehatFixtureFactory extends FixtureFactory (View source)
Methods
Writes the fixture into the database using DataObjects
Writes the fixture into the database directly using a database manipulation.
Return all of the IDs in the fixture of a particular class name.
Remove all fixtures previously defined through {@link createObject()} or {@link createRaw()}, both from the internal fixture mapping and the database.
Details
define(string $name, array|FixtureBlueprint $defaults = array())
DataObject
createObject(string $name, string $identifier, array $data = null)
Writes the fixture into the database using DataObjects
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.
getId($class, $identifier)
Get the ID of an object from the fixture.
A
getIds($class)
Return all of the IDs in the fixture of a particular class name.
setId($class, string $identifier, int $databaseId)
get($class, $identifier)
Get an object from the fixture.
array
getFixtures()
clear($limitToClass = null)
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.