Exemplo n.º 1
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->assertRelations($accessor, '_sahi._option("Man", ');
 }
    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", ');
    }