public function setUp()
{
parent::setUp();
$root = vfsStream::setup('rootDir');
vfsStream::newDirectory('user_data');
// 一旦別の変数に代入しないと, config 以下の値を書きかえることができない
$config = $this->app['config'];
$config['template_default_realdir'] = vfsStream::url('rootDir');
$config['user_data_realdir'] = $config['template_default_realdir'] . '/user_data';
mkdir($config['user_data_realdir']);
$this->app['config'] = $config;
$this->DeviceType = $this->app['orm.em']->getRepository('Eccube\\Entity\\Master\\DeviceType')->find(DeviceType::DEVICE_TYPE_PC);
$PageLayout = new PageLayout();
$PageLayout->setUrl($this->fileName)->setFileName($this->fileName)->setDeviceType($this->DeviceType)->setEditFlg(PageLayout::EDIT_FLG_USER);
$this->app['orm.em']->persist($PageLayout);
$this->app['orm.em']->flush();
}