Eccube\Tests\Form\Type\Admin\MasterdataTypeTest::testEntityMetadata PHP Method

testEntityMetadata() public method

本体のメタデータのみ取得できているかどうかのテスト.
See also: https://github.com/EC-CUBE/ec-cube/issues/1403
public testEntityMetadata ( )
    public function testEntityMetadata()
    {
        $view = $this->form['masterdata']->createView();
        $choices = $view->vars['choices'];
        $expect = 'Eccube-Entity';
        foreach ($choices as $choice) {
            $actual = $choice->data;
            $this->assertStringStartsWith($expect, $actual);
        }
    }
MasterdataTypeTest