コード例 #1
0
ファイル: FormAccessorTest.php プロジェクト: kingsj/core
 public function testOption()
 {
     $accessor = new Accessor\Form\OptionAccessor("Man", array(), $this->con);
     $this->assertEquals('_sahi._option("Man")', $accessor->getAccessor());
     $this->assertSame($this->con, $accessor->getConnection());
     $this->assertRelations($accessor, '_sahi._option("Man", ');
 }
コード例 #2
0
    public function testOption()
    {
        $accessor = new Accessor\Form\OptionAccessor("Man", array(), $this->con);

        $this->assertEquals('_sahi._option("Man")', $accessor->getAccessor());
        $this->assertSame($this->con, $accessor->getConnection());

        $this->assertActionJavascript(
            '_sahi._option("Man").selected',
            true,
            array($accessor, 'isSelected'),
            array()
        );

        $this->assertRelations($accessor, '_sahi._option("Man", ');
    }