<commit_before><?php
namespace TaskManagement\Service;

use AcMailer\Service\MailService;
use Application\Service\UserService;
use TaskManagement\Service\NotifyMailListener;
use Application\Entity\User;
use TaskManagement\Task;
use UnitTest\Bootstrap;
use People\Organization;
use TaskManagement\Stream;



class NotifyMailListenerTest extends \PHPUnit_Framework_TestCase {
	
	
	protected $listener;
	
	protected  $mailService;
	protected  $userService;
	
	protected $task;
	protected $owner;
	protected $member;
	protected $trigger; // estimation or share
	
	
	protected function setUp(){
			
		$serviceManager = Bootstrap::getServiceManager();
		
		//Task Owner
		$this->owner = User::create();
		$this->owner->setFirstname("Owner_Firstname");
		$this->owner->setEmail("<EMAIL>");
				
		//Task Member
		$this->member = User::create();
		$this->member->setFirstname("Member_Firstname");
		$this->member->setLastname("Member_Lastname");
				
		//Organization & Stream for Task Creation
		$organization = Organization::create('Pellentesque lorem ligula, auctor ac', $this->owner);
		$this->stream = Stream::create($organization, 'Curabitur rhoncus mattis massa vel', $this->owner);
		
		$this->task = Task::create($this->stream, 'Test TaskSubject', $this->owner);
		$this->task->addMember($this->owner, Task::ROLE_OWNER);
		//$this->task->addMember($this->member);
		
		//MailService
		$this->mailService = $serviceManager->get('AcMailer\Service\MailService');
		//MockUserService
		$this->userService = $this->getMockBuilder('Application\Service\UserService')->getMock();<commit_msg>Changed Organization/Stream name<commit_after><?php
namespace TaskManagement\Service;

use AcMailer\Service\MailService;
use Application\Service\UserService;
use TaskManagement\Service\NotifyMailListener;
use Application\Entity\User;
use TaskManagement\Task;
use UnitTest\Bootstrap;
use People\Organization;
use TaskManagement\Stream;



class NotifyMailListenerTest extends \PHPUnit_Framework_TestCase {
	
	
	protected $listener;
	
	protected  $mailService;
	protected  $userService;
	
	protected $task;
	protected $owner;
	protected $member;
	protected $trigger; // estimation or share
	
	
	protected function setUp(){
			
		$serviceManager = Bootstrap::getServiceManager();
		
		//Task Owner
		$this->owner = User::create();
		$this->owner->setFirstname("Owner_Firstname");
		$this->owner->setEmail("<EMAIL>");
				
		//Task Member
		$this->member = User::create();
		$this->member->setFirstname("Member_Firstname");
		$this->member->setLastname("Member_Lastname");
				
		//Organization & Stream for Task Creation
		$organization = Organization::create('Organization_test', $this->owner);
		$this->stream = Stream::create($organization, 'Steram_test', $this->owner);
		
		$this->task = Task::create($this->stream, 'Test TaskSubject', $this->owner);
		$this->task->addMember($this->owner, Task::ROLE_OWNER);
		//$this->task->addMember($this->member);
		
		//MailService
		$this->mailService = $serviceManager->get('AcMailer\Service\MailService');
		//MockUserService
		$this->userService = $this->getMockBuilder('Application\Service\UserService')->getMock();
{'fraction_non_alphanumeric': 0.1494435612082671, 'fraction_numerical': 0.0, 'mean_word_length': 5.420408163265306, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2147349', 'n_tokens_mistral': 1025, 'n_tokens_neox': 910, 'n_words': 175}