Webiny\Component\Mailer\Bridge\SwiftMailer\Message::getChildren PHP Method

getChildren() public method

public getChildren ( )
    public function getChildren()
    {
        return $this->message->getChildren();
    }

Usage Example

コード例 #1
0
ファイル: MessageTest.php プロジェクト: Webiny/Framework
 /**
  * @dataProvider messageProvider
  *
  * @param Message $message
  */
 public function testAddAttachment($message)
 {
     $storage = new Storage(new LocalStorageDriver(['Directory' => __DIR__ . '/Attachments']));
     $message->addAttachment(new File('Attachment.yaml', $storage), 'ExampleConfig.yaml', 'text/yaml');
     $children = $message->getChildren();
     $this->assertSame('text/yaml', $children[0]->getContentType());
 }