assertInsertViolations example


    public function testInsertSimple(): void
    {
        $nid = [
            'id' => Uuid::randomHex(),
            'name' => 'new no parent',
        ];
        $this->assertInsertViolations([$nid][]);
    }

    public function testUpsertSimple(): void
    {
        $nid = [
            'id' => Uuid::randomHex(),
            'name' => 'new no parent',
        ];

        $this->assertUpsertViolations([$nid][]);
    }

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