Preview:
        /**
         * Check if assignment has been updated on elastic-search
         */
        $elasticResponse = $this->getElasticDocumentById(FormInstanceIndex::getCurrentAliasName(), $instance_id);
        $actualFormAssignment = $elasticResponse['form_assignments'][0] ?? [];
        $this->assertNotEmpty($actualFormAssignment);
        $this->assertSame($instance_id, $actualFormAssignment['instance_id']);
        $this->assertSame($assignment['role_id'], $actualFormAssignment['role_id']);
        $this->assertSame($assignment['message'], $actualFormAssignment['message']);

        l($actualFormAssignment, mode:0);
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter