Menu

## EntityTest extends TestCase
in package

EntityTest.php : 8

EntityTest Class Doc Comment

### Table of Contents

$_entity : mixed
$config : mixed
_mockRequest() : mixed
testAll() : mixed
testDynamicAttributes() : mixed
testGetVariables() : mixed
testInvalidType() : mixed
testMaxLengthAttributes() : mixed
testObjectCreation() : mixed
testRead() : mixed
testReadOnlyAttributes() : mixed
testSave() : mixed
testSearch() : mixed
testSetVariables() : mixed
setUp() : mixed

### Properties

#### $_entity

EntityTest.php : 14
`protected mixed $_entity`

#### $config

EntityTest.php : 13
`protected mixed $config`

### Methods

#### _mockRequest()

EntityTest.php : 179
`public _mockRequest(mixed $endpoint) : mixed`

##### Parameters

$endpoint : mixed

##### Return values

mixed —

#### testAll()

EntityTest.php : 97
`public testAll() : mixed`

##### Return values

mixed —

#### testDynamicAttributes()

EntityTest.php : 145
`public testDynamicAttributes() : mixed`

##### Return values

mixed —

#### testGetVariables()

EntityTest.php : 55
`public testGetVariables() : mixed`

##### Return values

mixed —

#### testInvalidType()

EntityTest.php : 91
`public testInvalidType() : mixed`

##### Tags

expectedException

  \Exception

expectedExceptionMessage

  Wrong type object. It should be int for property quantity

##### Return values

mixed —

#### testMaxLengthAttributes()

EntityTest.php : 162
`public testMaxLengthAttributes() : mixed`

##### Tags

expectedException

  \Exception

expectedExceptionMessage

  Error maxLength in attribute maxLengthAttribute

##### Return values

mixed —

#### testObjectCreation()

EntityTest.php : 136
`public testObjectCreation() : mixed`

##### Return values

mixed —

#### testRead()

EntityTest.php : 128
`public testRead() : mixed`

##### Return values

mixed —

#### testReadOnlyAttributes()

EntityTest.php : 154
`public testReadOnlyAttributes() : mixed`

##### Tags

expectedException

  \Exception

expectedExceptionMessage

  Error readOnly in attribute readOnlyAttribute

##### Return values

mixed —

#### testSave()

EntityTest.php : 119
`public testSave() : mixed`

##### Return values

mixed —

#### testSearch()

EntityTest.php : 168
`public testSearch() : mixed`

##### Return values

mixed —

#### testSetVariables()

EntityTest.php : 29
`public testSetVariables() : mixed`

##### Return values

mixed —

#### setUp()

EntityTest.php : 18
`protected setUp() : mixed`

##### Return values

mixed —

## Search results