Eccube\Tests\Repository\CategoryRepositoryTest::testDelete PHP Метод

testDelete() публичный Метод

public testDelete ( )
    public function testDelete()
    {
        $Category = $this->app['eccube.repository.category']->findOneBy(array('name' => '孫2'));
        $updateDate = $Category->getUpdateDate();
        sleep(1);
        $result = $this->app['eccube.repository.category']->delete($Category);
        $this->assertTrue($result);
        $this->assertEquals(Constant::ENABLED, $Category->getDelFlg());
        $this->expected = $updateDate;
        $this->actual = $Category->getUpdateDate();
        $this->assertNotEquals($this->expected, $this->actual);
    }