mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Don't think the syntax highlighter likes my indentation with spaces.
This commit is contained in:
parent
3e5f788ddc
commit
6145e5914b
@ -42,7 +42,7 @@ URLs. Here is an example from the subsites module:
|
|||||||
$this->assertTrue(strpos($response3->getBody(), '<form') === false);
|
$this->assertTrue(strpos($response3->getBody(), '<form') === false);
|
||||||
$this->assertTrue(strpos($response3->getBody(), '<head') === false);
|
$this->assertTrue(strpos($response3->getBody(), '<head') === false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
We are using a new static method here: **Director::test($url, $postVars, $sessionObj)**
|
We are using a new static method here: **Director::test($url, $postVars, $sessionObj)**
|
||||||
|
@ -163,7 +163,7 @@ you only need to instantiate a factory to start using it.
|
|||||||
It is important to remember that fixtures are referenced by arbitrary
|
It is important to remember that fixtures are referenced by arbitrary
|
||||||
identifiers ('myobj1'). These are internally mapped to their database identifiers.
|
identifiers ('myobj1'). These are internally mapped to their database identifiers.
|
||||||
|
|
||||||
:::
|
:::php
|
||||||
$databaseId = $factory->getId('MyClass', 'myobj1');
|
$databaseId = $factory->getId('MyClass', 'myobj1');
|
||||||
|
|
||||||
In order to create an object with certain properties, just add a second argument:
|
In order to create an object with certain properties, just add a second argument:
|
||||||
|
Loading…
Reference in New Issue
Block a user