# RepositoryTestCase

Extends \NPS\Test\KernelTestCase

Repository test case allowing entity creation

author | Lukas Korinek
package | Default

### Methods

## Returns the container

    getContainer() : \Symfony\Component\DependencyInjection\ContainerInterface

inherited static

### Response

`\Symfony\Component\DependencyInjection\ContainerInterface`

## Returns an array of ids which belong to newly created test entities

    getCreatedEntityIds() : array

### Response

`array`

## Gets a repository class

    getRepository() : \NPS\Repository\IObjectRepository

final

### Response

`\NPS\Repository\IObjectRepository`

## Shall return an array of entities which will be set up in the db

    prepareEntities() : array

abstract

### Response

`array`

## Shall return class name of the tested repository

    selectRepositoryClass() : string

abstract

### Response

`string`

## setUp

    setUp()

inherited

## setUpBeforeClass

    setUpBeforeClass()

inherited static

inheritDoc |

## tearDown

    tearDown()

inherited

### Properties

## em

    em : \Doctrine\ORM\EntityManagerInterface

var |

### Type(s)

`\Doctrine\ORM\EntityManagerInterface`

## Truthful if the entities have already been copied into the database

    init : boolean

var | Truthful if the entities have already been copied into the database

### Type(s)

`boolean`

## ids

    ids : array

var |

### Type(s)

`array`

## container

    container :

inherited static

### Type(s)

``