public function sendReceive_notification_sendRequest($projectCode)
 {
     return SendReceiveCommands::notificationSendRequest($projectCode);
 }
 public function testNotificationSendRequest_HasSendReceiveAndHasUncommittedEntry_Notified()
 {
     self::$environ->clean();
     $project = self::$environ->createProject(SF_TESTPROJECT, SF_TESTPROJECTCODE);
     $project->sendReceiveProjectIdentifier = 'sr_id';
     $project->sendReceiveProject = new SendReceiveProjectModel('sr_name', '', 'manager');
     $project->write();
     $tmpTestPath = sys_get_temp_dir() . DIRECTORY_SEPARATOR . 'notifiedTest';
     $lfmergePaths = SendReceiveCommands::getLFMergePaths(true, $tmpTestPath);
     $projectStatePath = $lfmergePaths->statePath . DIRECTORY_SEPARATOR . strtolower($project->projectCode) . '.state';
     FileUtilities::createAllFolders($tmpTestPath);
     FileUtilities::createAllFolders($lfmergePaths->sendQueuePath);
     FileUtilities::createAllFolders($lfmergePaths->statePath);
     file_put_contents($projectStatePath, '{"state": "SENDING", "uncommittedEditCount": 1}');
     $mockPidFilePath = sys_get_temp_dir() . '/mockLFMerge.pid';
     $mockCommand = 'php ' . __DIR__ . '/mockLFMergeExe.php';
     $isNotified = SendReceiveCommands::notificationSendRequest($project->projectCode, $lfmergePaths->statePath, $lfmergePaths->sendQueuePath, $mockPidFilePath, $mockCommand);
     $queueFileNames = scandir($lfmergePaths->sendQueuePath);
     $this->assertTrue($isNotified);
     $this->assertCount(3, $queueFileNames);
     FileUtilities::removeFolderAndAllContents($tmpTestPath);
 }