public function setUp() { $this->onBeforeSetup(); $repositoryFactory = new RepositoryFactory($this->config, $this->connection, $this->transactor); $this->entityRegistry = $repositoryFactory->getEntityRegistry(); $this->builder = $repositoryFactory->getEntityBuilder(); $this->unitOfWork = $repositoryFactory->getUnitOfWork(); $this->idAccessorRegistry = $repositoryFactory->getIdAccessorRegistry(); $this->onAfterSetUp(); }