isMultiSelect example

$this->assertSame(
            [
                ['display' => $display, 'value' => $value],
            ],
            $input->toArray()['choices']
        );
    }

    public function testIsMultiSelectWithTrue()
    {
        $input = $this->createInput()
            ->isMultiSelect(true);

        $this->assertTrue($input->toArray()['isMultiSelect']);
    }

    public function testIsMultiSelectWithFalse()
    {
        $input = $this->createInput()
            ->isMultiSelect(false);

        $this->assertFalse($input->toArray()['isMultiSelect']);
    }

    
Home | Imprint | This part of the site doesn't use cookies.