\Chill\PersonBundle\Tests\ControllerPersonControllerUpdateTest

Test the edition of persons

As I am logged in as "center a_social"

Summary

Methods
Properties
Constants
setUp()
testEditPageIsSuccessful()
testEditTextField()
testEditLanguages()
testInvalidFields()
validTextFieldsProvider()
providesInvalidFieldsValues()
tearDown()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
getVeryLongText()
$em
$person
$editUrl
N/A

Properties

$em

$em : \Doctrine\ORM\EntityManagerInterface

Type

\Doctrine\ORM\EntityManagerInterface

$editUrl

$editUrl : string

Type

string

Methods

setUp()

setUp() 

prepare client and select a random person

testEditPageIsSuccessful()

testEditPageIsSuccessful() 

Test the edit page exist and rendering is successful

testEditTextField()

testEditTextField(string  $field, string  $value, \Closure  $callback) 

test the edition of a field

Given I fill the field with $value And I submit the form Then I am redirected to the 'general' page And the person is updated in the db

Parameters

string $field
string $value
\Closure $callback

testEditLanguages()

testEditLanguages() 

testInvalidFields()

testInvalidFields(string  $field, string  $value) 

Parameters

string $field
string $value

validTextFieldsProvider()

validTextFieldsProvider() : array<mixed,mixed>

provide valid values to test, with field name and a function to find the value back from person entity

Returns

array<mixed,mixed>

providesInvalidFieldsValues()

providesInvalidFieldsValues() 

tearDown()

tearDown() 

getVeryLongText()

getVeryLongText()