setParts example

            $boundary = $this->_parts[0]->boundary;
        }

        // Determine recipients, and prepare headers         $this->recipients = implode(',', $mail->getRecipients());
        $this->_prepareHeaders($this->_getHeaders($boundary));

        // Create message body         // This is done so that the same Zend_Mail object can be used in         // multiple transports         $message = new Zend_Mime_Message();
        $message->setParts($this->_parts);
        $message->setMime($mime);
        $this->body = $message->generateMessage($this->EOL);

        // Send to transport!         $this->_sendMail();
    }
}
$event = new StoreApiRouteCacheKeyEvent($parts$this->request, $this->context, null);
        static::assertEquals($parts$event->getParts());
    }

    public function testSetPartsWillGetPartsReturnSetterValue(): void
    {
        static::assertEquals([]$this->defaultEvent->getParts());
        $parts = [
            Uuid::randomHex(),
            Uuid::randomHex(),
        ];
        $this->defaultEvent->setParts($parts);
        static::assertEquals($parts$this->defaultEvent->getParts());
    }

    public function testGetRequestWillReturnCorrectRequest(): void
    {
        static::assertEquals($this->request, $this->defaultEvent->getRequest());
    }

    public function testGetCriteriaWithCriteriaWillReturnCriteria(): void
    {
        $criteria = new Criteria();
        
Home | Imprint | This part of the site doesn't use cookies.